<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Extending polkit</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="polkit Reference Manual">
<link rel="up" href="overview.html" title="Part I. polkit Overview">
<link rel="prev" href="polkit-agents.html" title="Writing polkit Authentication Agents">
<link rel="next" href="ref-dbus-api.html" title="Part II. D-Bus API Reference">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="polkit-agents.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="overview.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">polkit Reference Manual</th>
<td><a accesskey="n" href="ref-dbus-api.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="chapter">
<div class="titlepage"><div><div><h2 class="title">
<a name="polkit-extending"></a>Extending polkit</h2></div></div></div>
<p>
      polkit exports a number of extension points to
      replace/customize behavior of the polkit daemon. Note that
      all extensions run with super user privileges in the same
      process as the polkit daemon.
    </p>
<p>
      The polkit daemons loads extensions
      from the <code class="filename">/usr/lib64/polkit-1/extensions
</code> directory. See
      the <GTKDOCLINK HREF="gio-Extension-Points">GIO Extension Point
        documentation</GTKDOCLINK> for more information about the extension
      system used by polkit.
    </p>
<p>
      The following extension points are currently defined by
      polkit:
    </p>
<p><b>POLKIT_BACKEND_AUTHORITY_EXTENSION_POINT_NAME. </b>
        Allows replacing the Authority – the entity responsible for
        making authorization decisions. Implementations of this
        extension point must be derived from the
        PolkitBackendAuthority class. See
        the <code class="filename">src/nullbackend/</code> directory in the
        polkit sources for an example.
      </p>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>